<?php	
namespace app\pay\controller\yop;

use think\Controller;

class Base extends Controller {
    /*
     * 打款状态码转换
     */
    protected function statusCode($code) {
        switch ($code) {
            case '0025':
                $statusCode = 0;
                break;
            case '0026':
                $statusCode = 1;
                break;
            case '0027':
                $statusCode = 2;
                break;
            case '0028':
                $statusCode = 3;
                break;
            case '0029':
                $statusCode = 4;
                break;
            case '0030':
                $statusCode = 5;
                break;
        }
        return $statusCode;
    }
}